package com.atguigu.yygh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
//@MapperScan("com.atguigu.yygh.hosp.mapper")
@EnableSwagger2  //不加该注解的话 打开swagger页面会报错
@ComponentScan(basePackages = "com.atguigu")  //注意这里com.atgui 其他包块中的也会导入进来，因为都是com.atguigu开头
@EnableDiscoveryClient  //该注解表示启动nacos注册
@EnableFeignClients(basePackages = "com.atguigu")  //因为在不同模块中，存在找不到的可能性，故加入该注解
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class,args);
    }
}
